#include "stdafx.h"
#include "Def.h"

int mystrlenxx(const char * szSrc, int maxCount)
{
	if(szSrc == NULL)
		return 0;

	int _size = 0;
	while( _size < maxCount && szSrc[_size] != '\0')
	{	
		++_size;
	}
	return _size;
}